PCI IRQ -MPC8540
Hello all:
Can someone provide me the pointer for the patch for u-boot-1.1.2 to set-up MPC8540 as an agent correctly.
Thanks
J.Joseph
----- Original Message ----
From: Jin Zhengxiong-R64188 <[email protected]>
To: agnel juni <[email protected]>
Sent: Thursday, 18 January, 2007 6:43:55 PM
Subject: RE: PCI IRQ -MPC8540
Message
DIV {
MARGIN:0px;}
The comments inline the mail, FYI...
Ok.
The issue is , for the agent
driver to route the IRQ, if I understand right ... the PCI(being the host) BIOS should assign an IRQ value isn't?.
Do you means the
IRQ value should be write to the 8540 pci config space? If the 8540 card was set as agent correctly(there's another patch for the 8540 u-boot to set the agent correctly), it's the responsibility of the host to settup it's PCI IRQ. The agent should just act like and normal PCI card, such as the ether card.the agent just need to generate a interrupt on the IRQ_OUT ping when needed.
This doesn't happen in our
case.
When we plug the 8540 card as an agent to the PC host, only in one of the slots does the host PC BIOS
assigns an IRQ value for the card. In others it doesn't.
Try to patch the
8540 u-boot to set the agent correctly, you can also pay attention to the start up sequence of the agent and host, may be you need to stat up the agent u-boot first(I can't remember this clearly,just FYI)
I am just trying to understand the
possible reason.
Thanks
J.Joseph
-----
Original Message ----
From: Jin Zhengxiong-R64188
<[email protected]>
To: Kumar Gala
<[email protected]>; agnel juni
<[email protected]>
Cc: [email protected]
Sent:
Wednesday, 17 January, 2007 1:34:06 AM
Subject: RE: PCI IRQ -MPC8540
Quoted 1 line
What kinda of interrupt do you want on
IRQ_OUT/INTA?
Quoted 1 line
- k
Quoted 3 lines · agnel juni
Yes
IRQ_OUTis wired to INTA.Could you
please advise on how to generate interrupt for this.
You can refer to a
Freescale Linux BSP for MPC8540EVAL board. There's a pci agent driver for MPC8540, and the corresponding host driver for MPC8560. The agent driver use a message interrupt in MPC8540 and redirect the interrupt to IRQ_OUT. As the IRQ_OUT is wired to INTA, you can treat MPC8540 as a PCI device.
Jason
Jin
Quoted 4 lines
Thanks
J------ Original Message
----
Quoted 2 lines
From: Kumar Gala <[email protected]>
To:
agnel juni <[email protected]>
Quoted 1 line
Cc:
Quoted 1 line
Sent: Tuesday, 16 January, 2007 5:29:01
PM
Quoted 4 lines
Subject: Re: PCI IRQ -MPC8540
On Jan 16,
Quoted 5 lines · agnel juni
Quoted 5 lines
Hello all:
I would like to understand if there is a way to program the
PCI
Quoted 7 lines
Quoted 6 lines
interrupt pin register of MPC8540. I did look for this in the
datasheet, but couldn't find any positive answer.
Currently, I am working in a set-up where MPC8540 is an agent,
Quoted 7 lines
Quoted 7 lines
plugged into the PC host. I couldn't get an IRQ for the card when
plugged in some PCI slots, whereas in one of the slots I do see a
non-zero value.
It would be great if you
could help me understand the issue.
Quoted 2 lines
Quoted 2 lines
I am sorry if the
question is inapporpriate in the group. I am
Quoted 1 line
Quoted 1 line
desperate to solve
the issue.
Quoted 4 lines
Quoted 2 lines
Thanks for any help.
You
need to find out how the PCI edge interrupts are wired on you
Quoted 1 line
board
than we can talk about how to generate an interrupt based on
Quoted 1 line
that. I'd guess IRQ_OUT is wired to INTA, but it would be good to
Quoted 9 lines
verify that.
- k
Quoted 5 lines
J.Joseph
----- Original Message ----
From: Kumar Gala
Quoted 1 line
Quoted 1 line
To: Wang Matthew-R59995
Quoted 4 lines
Quoted 1 line
Sent: Wednesday, 18 October, 2006 6:54:24 PM
Quoted 1 line
Subject: Re:
Linuxppc-embedded Digest, Vol 26, Issue 36
Quoted 9 lines
Quoted 2 lines
Quoted 3 lines · On Oct 18, 2006, at 8:10 PM, Wang Matthew-R59995 wrote:
Quoted 3 lines
Hi Kumar,
Actually I
do many trials about it. Vxwerks Bootrom is smaller
Quoted 8 lines
than
Quoted 1 line
U-Boot. The key difference between Bootrom and U-boot is that some
Quoted 4 lines
source code of Bootrom is invisible to the users.
Quoted 1 line
Actually the rfi instruction which I point out is the
first rfi
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
instruction of Linux PowerPC bringup.
Before that, it's TLB entry invalidation and temp TLB
entry
Quoted 3 lines
mapping.
Quoted 2 lines
Quoted 2 lines
I check MMU setting
carefully before coming Linux Kernel.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
I just
want to know if other guys met similar scenario like me. I
Quoted 1 line
Quoted 1 line
Quoted 1 line
don't need the precise answer, just overall suggestion about it
Quoted 1 line
because
I
Quoted 1 line
Quoted 1 line
Quoted 1 line
understand that not everyone has the same bootloader of
mine, that
Quoted 1 line
Quoted 1 line
Quoted 1 line
bootloader is actually a customized
bootloader.
Quoted 2 lines
Quoted 2 lines
I understand that, thus I was asking what
exact problem you were
Quoted 6 lines
Quoted 6 lines
seeing to try and help.
Quoted 3 lines
Anyway thank you.
R9
point to LR register, mask the high 20 bit of r9 and send to
Quoted 4 lines
r7,
Quoted 2 lines
and
Quoted 1 line
then add 24, which means stride 6 instructions
for rfi instruction
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines
execution.
Of course, rfi can switch the TLB entry, both the previous TLB
Quoted 1 line
entry and the temp TLB entry point to the same physical
address.
Quoted 12 lines
Quoted 6 lines
Quoted 2 lines
I've checked it.
I know what the code does, I wrote it :)
- kumar
Quoted 4 lines
_______________________________________________
Quoted 1 line
Quoted 1 line
Linuxppc-embedded
mailing list
Quoted 6 lines
Quoted 6 lines
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embeddedHere's a new way to find what you're looking for
- Yahoo! Answers
Quoted 4 lines
Here's a new way to find what
you're looking for - Yahoo!
Answers
_______________________________________________
Linuxppc-embedded
mailing list
[email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Here¢s a new way to find what you're looking for - Yahoo! Answers
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/